#ifndef CHOOSELEVELSCENE_H
#define CHOOSELEVELSCENE_H

#include <QMainWindow>
#include <QVector>
class MyPushButton;
class QAction;
class PlayScene;
class ChooseLevelScene : public QMainWindow
{
    Q_OBJECT
public:
    explicit ChooseLevelScene(QWidget *parent = nullptr);
    void init();
    void createLevelButton();
    void setConnect();
    void paintEvent(QPaintEvent*);
public slots:
    void onAcitionQuitClicked();
    void onCloseBtnClicked();
    void startReturnToMain();
    void OnLevelSelected(int level);
    void BackToChoose();
private:
    QAction* m_QuitAction;
    MyPushButton*   m_CloseBtn;
    PlayScene*      m_pPlayScene;
    QVector<MyPushButton*> vecLevelButton;
signals:
    void chooseSceneBack();
    void LevelSelected(int level);
};

#endif // CHOOSELEVELSCENE_H
